package day1110_3;

public class W3 {
    public static void main(String[] args) {
        int n=1;
        while(n<=10000){
            if( n%123  == 0  &&  n != 123){
                System.out.println(n);
                break;
            }
            n++;
        }
    }
}
